home *** CD-ROM | disk | FTP | other *** search
/ Gekikoh Dennoh Club 2 / Gekikoh Dennoh Club Vol. 2 (Japan).7z / Gekikoh Dennoh Club Vol. 2 (Japan) (Track 01).bin / tools / post2_g2 / src / post.h < prev   
Text File  |  1997-10-13  |  3KB  |  132 lines

  1. /*
  2.     post / 郵便番号検索プログラム
  3.  
  4.     post.h / ヘッダファイル
  5. */
  6.  
  7. /* p_doku の検索打ち切り数 */
  8. #define    GENKAI        1024
  9.  
  10. /* p_bangou の検索打ち切り数 */
  11. #define    B_GEN        1024
  12.  
  13. /* p_kana の検索打ち切り数 */
  14. #define K_GEN        1024
  15.  
  16. /* p_disp における字名一覧のページ当り行数 */
  17. #define    PAGELINE    20
  18.  
  19. /* バージョン番号 */
  20. #define    VERSION        "2.00"
  21.  
  22. typedef    unsigned char    uchar;
  23.  
  24.  
  25. /*
  26.     前宣言
  27. */
  28. /* p_fuku.c */
  29. void    check_kanousei( int shiku_num[5] );
  30. /* p_find.c */
  31. void    shikugun_check( void );
  32. void    cut_check( int kou1, int kou2 );
  33. int        find_strs_pref( uchar *cwork, int delim_code );
  34. int        find_strs_kou2( uchar *cwork, int delim_code );
  35. /* p_disp.c */
  36. void    disp_number( void );
  37. void    k_num_disp( uchar *kstr );
  38. /* p_kana.c */
  39. void    hankaku_kensaku( void );
  40. /* p_doku.c */
  41. void    dokuji_kensaku( void );
  42. /* p_uni.c */
  43. int        iskan( uchar *kan );
  44. int        is_not_delim( char delim_wk );
  45. int        sentou_niji( uchar *chk_str );
  46. void    pass_next_han( void );
  47. void    pass_next_han2( uchar wk );
  48. int        check_next_delim( int stype );
  49. void    fuka_delim( uchar *str_p, int delim_code );
  50. void    koumoku_set( uchar *cwork, uchar kou );
  51. void    get_next_han( uchar *str_p );
  52. void    get_next_han2( uchar *str_p );
  53. int        ret_delim_code( uchar delim );
  54. void    del_last_char( uchar workstr[] );
  55. void    pass_back_han( uchar delim );
  56. int        strschks( uchar *moji1, uchar *moji2 );
  57. void    str_purge( uchar *purge_str );
  58. int        hankaku_test( void );
  59. void    ke_test( void );
  60. void    ken_atamadashi( void );
  61. void    todo_kakutei( void );
  62. void    number_seikei( uchar *num_wk );
  63. void    get_next_num( uchar *str_p );
  64. void    moji_pr( unsigned char *inpstr, unsigned char *irostr );
  65. uchar    backtrace( void );
  66. int        seirei_check( uchar *teststr );
  67. void    ichien_check( uchar *pnum, uchar *knum );
  68. uchar    *nokori( uchar *strwk1, uchar *strwk2 );
  69. void    str_bcpy( uchar *strwk1, int start_pos, int end_pos );
  70. int        sonzai_check( uchar *str1, uchar *str2, int d_code1, int d_code2 );
  71. int        bm_find( uchar delim, uchar *patt, int first_pos );
  72. void    status_print( void );
  73. void    keta( uchar s1[], uchar s2[] );
  74. void    kugiri( void );
  75. /* p_bangou.c */
  76. void    bangou_kensaku( void );
  77. void    ichien_check2( int ichien, uchar *pnum, uchar *knum );
  78. int    is_bangou_legal( uchar *bangou );
  79. /* post.c */
  80. int        main( int argc, char *argv[] );
  81. void    usage( void );
  82. void    open_check( char *argvs );
  83. void    kenmei_kakutei( void );
  84. void    hensuu_syokika( void );
  85. void    input_juusyo( void );
  86. void    kaihou( void );
  87.  
  88.  
  89. /*
  90.     extern
  91. */
  92. extern    FILE    *ai,*bi;
  93.  
  94. extern    int    ofs,
  95.         pref_ofs,
  96.         file_len,
  97.         num_pref,
  98.         shiku_tokutei_sw,
  99.         tousuu,
  100.         kusuu,
  101.         todo_sw,
  102.         dokuji_sw,
  103.         k_suppress,
  104.         azamei_gentei,
  105.         kugiri_mode,
  106.         genmitsu_mode,
  107.         tousyo_sw,
  108.         exist_moji,
  109.         ctr;
  110.  
  111. extern    uchar    *buf,
  112.         str_work[256],
  113.         input_str[256],
  114.         shikumei[64],
  115.         shikumei2[64],
  116.         yomi0[10],
  117.         yomi1[64],
  118.         yomi2[64],
  119.         yomi3[64],
  120.         pref[ 47 ][ 10 ],
  121.         pref_yomi[ 47 ][ 10 ],
  122.         tousyo[9][2][11],
  123.         toku[23][2][10],
  124.         kanji_shiku[ 5 ][ 3 ],
  125.         delim_shiku[ 6 ];
  126. extern __common const unsigned char *_mbctype;
  127.  
  128. /*
  129.     たんぼ氏提供 超 FEP オフりルーチン
  130. */
  131. extern int    (*fep_off)();
  132.